package com.yexiao.cofe.business.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author lkl
 * @since 2025/4/8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("user_role")
public class UserRole {

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 门店ID
     */
    @TableField(value = "store_id")
    private String storeId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 角色ID
     */
    @TableField(value = "role_id")
    private Integer roleId;

    /**
     * 是否删除。0-否，1-是
     */
    @TableField(value = "is_del")
    @TableLogic
    private Integer isDel;

    public static final String ID = "id";
    public static final String STORE_ID = "store_id";
    public static final String USER_ID = "user_id";
    public static final String ROLE_ID = "role_id";
    public static final String IS_DEL = "is_del";
}
